package com.leoman.service;


import com.leoman.entity.Image;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartRequest;

import java.util.List;

/**
 * Created by wangbin on 2014/12/9.
 */
public interface ImageService {

    public Image getById(Integer id);

    public Image deleteById(Integer id);

    public Image create(Image image);

    public Image createPlus(Image image, MultipartFile multipartFile);

    public List<Image> findListByQuestionId(Integer questionId);

    public Integer batchAddImage(MultipartRequest multipartRequest, Integer questionId);

    public Integer batchAddImage(List<MultipartFile> imageList, Integer questionId);
}
